package com.mycompany.protocol;

import java.util.List;

/**
 *
 * @author Admin
 */
public class RootJobCommand {

    private final List<NestedJob> nestedJobs;
    private final List<String> sessions;

    public RootJobCommand(List<NestedJob> nestedJobs, List<String> sessions) {
        this.nestedJobs = nestedJobs;
        this.sessions = sessions;
    }

    public List<NestedJob> getNestedJobs() {
        return nestedJobs;
    }

    public List<String> getUserNames() {
        return sessions;
    }

    public static class NestedJob {

        private final String jobName;
        private final String creatorName;

        public NestedJob(String jobName, String creatorName) {
            this.jobName = jobName;
            this.creatorName = creatorName;
        }

        public String getCreatorName() {
            return creatorName;
        }

        public String getJobName() {
            return jobName;
        }
    }
}
